import Layout from '@/views/layout'

export default function (component) {
  switch (component) {
    case 'Layout':
      return Layout
    default:
      return resolve => require([`@/views/${component}.vue`], resolve);
  }
}
